package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceCancelorderMapper;
import com.ruoyi.service.domain.ServiceCancelorder;
import com.ruoyi.service.service.IServiceCancelorderService;

/**
 * 订单取消原因对应表Service业务层处理
 * 
 * @author ZDL
 * @date 2024-12-25
 */
@Service
public class ServiceCancelorderServiceImpl implements IServiceCancelorderService 
{
    @Autowired
    private ServiceCancelorderMapper serviceCancelorderMapper;

    /**
     * 查询订单取消原因对应表
     * 
     * @param cancelorderId 订单取消原因对应表主键
     * @return 订单取消原因对应表
     */
    @Override
    public ServiceCancelorder selectServiceCancelorderByCancelorderId(Long cancelorderId)
    {
        return serviceCancelorderMapper.selectServiceCancelorderByCancelorderId(cancelorderId);
    }

    /**
     * 查询订单取消原因对应表列表
     * 
     * @param serviceCancelorder 订单取消原因对应表
     * @return 订单取消原因对应表
     */
    @Override
    public List<ServiceCancelorder> selectServiceCancelorderList(ServiceCancelorder serviceCancelorder)
    {
        return serviceCancelorderMapper.selectServiceCancelorderList(serviceCancelorder);
    }

    /**
     * 新增订单取消原因对应表
     * 
     * @param serviceCancelorder 订单取消原因对应表
     * @return 结果
     */
    @Override
    public int insertServiceCancelorder(ServiceCancelorder serviceCancelorder)
    {
        return serviceCancelorderMapper.insertServiceCancelorder(serviceCancelorder);
    }

    /**
     * 修改订单取消原因对应表
     * 
     * @param serviceCancelorder 订单取消原因对应表
     * @return 结果
     */
    @Override
    public int updateServiceCancelorder(ServiceCancelorder serviceCancelorder)
    {
        return serviceCancelorderMapper.updateServiceCancelorder(serviceCancelorder);
    }

    /**
     * 批量删除订单取消原因对应表
     * 
     * @param cancelorderIds 需要删除的订单取消原因对应表主键
     * @return 结果
     */
    @Override
    public int deleteServiceCancelorderByCancelorderIds(Long[] cancelorderIds)
    {
        return serviceCancelorderMapper.deleteServiceCancelorderByCancelorderIds(cancelorderIds);
    }

    /**
     * 删除订单取消原因对应表信息
     * 
     * @param cancelorderId 订单取消原因对应表主键
     * @return 结果
     */
    @Override
    public int deleteServiceCancelorderByCancelorderId(Long cancelorderId)
    {
        return serviceCancelorderMapper.deleteServiceCancelorderByCancelorderId(cancelorderId);
    }
}
